home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / dist / gdb / doc / psref.tex < prev    next >
Encoding:
Text File  |  1992-04-11  |  20.2 KB  |  555 lines

  1. %%%%%%%%%%%%%%%% gdb-refcard.tex %%%%%%%%%%%%%%%%
  2.  
  3. %This file is TeX source for a reference card describing GDB, the GNU debugger.
  4. %$Id: refcard.tex,v 1.95 1992/01/15 23:51:05 pesch Exp $
  5. %Copyright (C) 1991, 1992 Free Software Foundation, Inc.
  6. %Permission is granted to make and distribute verbatim copies of
  7. %this reference provided the copyright notices and permission notices
  8. %are preserved on all copies.
  9. %
  10. %TeX markup is a programming language; accordingly this file is source
  11. %for a program to generate a reference.
  12. %
  13. %This program is free software; you can redistribute it and/or modify
  14. %it under the terms of the GNU General Public License as published by
  15. %the Free Software Foundation; either version 1, or (at your option)
  16. %any later version.
  17. %
  18. %This program is distributed in the hope that it will be useful, but
  19. %WITHOUT ANY WARRANTY; without even the implied warranty of
  20. %MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  21. %General Public License for more details.
  22. %
  23. %You can find a copy of the GNU General Public License in the GDB
  24. %manual; or write to the Free Software Foundation, Inc.,
  25. %675 Mass Ave, Cambridge, MA 02139, USA.
  26. %
  27. %You can contact the author as:  pesch@cygnus.com
  28. %
  29. %                                Roland Pesch
  30. %                                Cygnus Support
  31. %                                814 University Ave.
  32. %                                Palo Alto, CA 94301 USA
  33. %
  34. %                                +1 415 322 3811
  35. %
  36. % Uncomment the following `magnification' command if you want to print
  37. % out in a larger font.  Caution!  You may need larger paper.  You had
  38. % best avoid using 3-column output if you try this.  See the ``Three
  39. % column format'' section below if you want to print in three column
  40. % format.
  41. %
  42. %\magnification=\magstep 1
  43. %
  44. % NOTE ON INTENTIONAL OMISSIONS: This reference card includes most GDB
  45. % commands, but due to space constraints there are some things I chose
  46. % to omit.  In general, not all synonyms for commands are covered, nor
  47. % all variations of a command.
  48. % The GDB-under-Emacs section omits gdb-mode functions without default
  49. % keybindings.  GDB startup options are not described.
  50. % set print sevenbit-strings, set symbol-reloading omitted.
  51. % printsyms, printpsyms, omitted since they're for GDB maintenance primarily
  52. % share omitted due to obsolescence
  53. % set check range/type omitted at least til code is in GDB.
  54. %
  55. {%
  56. \def\$#1${{#1}}%   Kluge: collect RCS revision info without $...$
  57. \xdef\manvers{\$Revision: 1.95 $}%
  58. }%
  59. %-------------------- Three column format -----------------------
  60.  
  61. %%%% --- To disable three column format, comment out this entire section
  62.  
  63. % Three-column format for landscape printing on 8.5x11 paper
  64.  
  65. % We want output .25 inch *from paper edge*; i.e. -.75in from TeX default
  66. \hoffset=-0.8in \voffset=-0.75in
  67. \newdimen\fullhsize
  68. \fullhsize=10.5in \hsize=3.3in
  69. \def\fulline{\hbox to \fullhsize}
  70. \let\lcr=L \newbox\leftcolumn\newbox\centercolumn
  71. \output={\if L\lcr
  72.             \global\setbox\leftcolumn=\columnbox \global\let\lcr=C
  73.      \else
  74.             \if C\lcr
  75.                \global\setbox\centercolumn=\columnbox \global\let\lcr=R
  76.             \else \tripleformat \global\let\lcr=L
  77.             \fi
  78.          \fi
  79. %         \ifnum\outputpenalty>-20000 \else\dosupereject\fi
  80.       }
  81. %
  82. %ALTERNATIVE FOLDING GUIDES:
  83. %
  84. %For NO printed folding guide, comment out other \def\vdecor's and uncomment:
  85. %\def\vdecor{\hskip .2in plus1fil}
  86. %
  87. %For SOLID LINE folding guide, comment out other \def\vdecor's and uncomment:
  88. %\def\vdecor{\hskip .1in plus1fil \vrule width .1pt \hskip .1in plus1fil}
  89. %
  90. %For SMALL MARKS NEAR TOP AND BOTTOM as folding guide,
  91. %comment out other \def\vdecor's and uncomment:
  92. \def\vdecor{\hskip .1in plus1fil 
  93. \vbox to \vsize{\hbox to .1pt{\vrule height 2pt width .1pt}\vfill
  94. \hbox to .1pt{\vrule height 2pt width .1pt}}
  95. \hskip .1in plus1fil}
  96. %
  97. %END OF ALTERNATIVES FOR FOLDING GUIDES
  98. %
  99. \def\tripleformat{\shipout\vbox{\fulline{\box\leftcolumn\vdecor
  100.                                          \box\centercolumn\vdecor
  101.                                          \columnbox}
  102.                    }
  103.                  \advancepageno}
  104. \def\columnbox{\leftline{\pagebody}}
  105. \def\bye{\par\vfill
  106.          \supereject
  107.          \if R\lcr \null\vfill\eject\fi
  108.          \end}
  109.  
  110. %-------------------- end three column format -----------------------
  111.  
  112. %-------------------- PostScript (K Berry names) font defs: --------------
  113. \font\bbf=ptmb at 10pt
  114. \font\vbbf=ptmb at 12pt
  115. \font\smrm=ptmr at 6pt
  116. \font\brm=ptmr at 10pt
  117. \font\rm=ptmr at 8pt
  118. \font\it=ptmri at 8pt
  119. \font\tt=pcrr at 8pt
  120. % Used only for copyright, replacing plain TeX macro.
  121. \font\sym=psyr at 7pt
  122. \def\copyright{{\sym\char'323}}
  123. %-------------------- end font defs ---------------------------------
  124.  
  125. %
  126. \vsize=8in
  127. \hyphenpenalty=5000\tolerance=2000\raggedright\raggedbottom
  128. \normalbaselineskip=9pt\baselineskip=9pt
  129. %
  130. \parindent=0pt
  131. \parskip=0pt
  132. \footline={\vbox to0pt{\hss}}
  133. %
  134. \def\ctl#1{{\tt C-#1}}
  135. \def\opt#1{{\brm[{\rm #1}]}}
  136. \def\xtra#1{\noalign{\smallskip{\tt#1}}}
  137. %
  138. \long\def\sec#1;#2\endsec{\vskip 1pc
  139. \halign{%
  140. %COL 1 (of halign):
  141. \vtop{\hsize=1.1in\tt
  142. ##\par\vskip 2pt }\hfil
  143. %COL 2 (of halign):
  144. &\vtop{\hsize=2.1in\hangafter=1\hangindent=0.5em
  145. \rm ##\par\vskip 2pt}\cr
  146. %Tail of \long\def fills in halign body with \sec args:
  147. \noalign{{\bbf #1}\vskip 2pt}
  148. #2
  149. }
  150. }
  151.  
  152. {\vbbf GDB QUICK REFERENCE}\hfil{\smrm GDB Version 4}\qquad
  153.  
  154. \sec Essential Commands;
  155. gdb {\it program} \opt{{\it core}}&debug {\it program} \opt{using
  156. coredump {\it core}}\cr
  157. b \opt{\it file\tt:}{\it function}&set breakpoint at {\it function} \opt{in \it file}\cr
  158. run \opt{{\it arglist}}&start your program \opt{with {\it arglist}}\cr
  159. bt& backtrace: display program stack\cr
  160. p {\it expr}&display the value of an expression\cr
  161. c &continue running your program\cr
  162. n &next line, stepping over function calls\cr
  163. s &next line, stepping into function calls\cr
  164. \endsec
  165.  
  166. \sec Starting GDB;
  167. gdb&start GDB, with no debugging files\cr
  168. gdb {\it program}&begin debugging {\it program}\cr
  169. gdb {\it program core}&debug coredump {\it core} produced by {\it
  170. program}\cr
  171. gdb --help&describe command line options\cr
  172. \endsec
  173.  
  174. \sec Stopping GDB;
  175. quit&exit GDB; also {\tt q} or {\tt EOF} (eg \ctl{d})\cr
  176. INTERRUPT&(eg \ctl{c}) terminate current command, or send to running process\cr
  177. \endsec
  178.  
  179. \sec Getting Help;
  180. help&list classes of commands\cr
  181. help {\it class}&one-line descriptions for commands in {\it class}\cr
  182. help {\it command}&describe {\it command}\cr
  183. \endsec
  184.  
  185. \sec Executing your Program;
  186. run {\it arglist}&start your program with {\it arglist}\cr
  187. run&start your program with current argument list\cr
  188. run $\ldots$ <{\it inf} >{\it outf}&start your program with input, output
  189. redirected\cr
  190. \cr
  191. kill&kill running program\cr
  192. \cr
  193. tty {\it dev}&use {\it dev} as stdin and stdout for next {\tt run}\cr
  194. set args {\it arglist}&specify {\it arglist} for next
  195. {\tt run}\cr
  196. set args&specify empty argument list\cr
  197. show args&display argument list\cr
  198. \cr
  199. show environment&show all environment variables\cr
  200. show env {\it var}&show value of environment variable {\it var}\cr
  201. set env {\it var} {\it string}&set environment variable {\it var}\cr
  202. unset env {\it var}&remove {\it var} from environment\cr
  203. \endsec
  204.  
  205. \sec Shell Commands;
  206. cd {\it dir}&change working directory to {\it dir}\cr
  207. pwd&Print working directory\cr
  208. make $\ldots$&call ``{\tt make}''\cr
  209. shell {\it cmd}&execute arbitrary shell command string\cr
  210. \endsec
  211.  
  212. \vfill
  213. \line{\smrm \opt{ } surround optional arguments \hfill $\ldots$ show
  214. one or more arguments}
  215. \vskip\baselineskip
  216. \centerline{\smrm \copyright 1991, 1992 Free Software Foundation, Inc.\qquad Permissions on back}
  217. \eject
  218. \sec Breakpoints and Watchpoints;
  219. break \opt{\it file\tt:}{\it line}\par
  220. b \opt{\it file\tt:}{\it line}&set breakpoint at {\it line} number \opt{in \it file}\par 
  221. eg:\quad{\tt break main.c:37}\quad\cr
  222. break \opt{\it file\tt:}{\it function}&set breakpoint at {\it
  223. function} \opt{in \it file}\cr
  224. break +{\it offset}\par
  225. break -{\it offset}&set break at {\it offset} lines from current stop\cr
  226. break *{\it addr}&set breakpoint at address {\it addr}\cr
  227. break&set breakpoint at next instruction\cr
  228. break $\ldots$ if {\it expr}&break conditionally on nonzero {\it expr}\cr
  229. cond {\it n} \opt{\it expr}&new conditional expression on breakpoint
  230. {\it n}; make unconditional if no {\it expr}\cr
  231. tbreak $\ldots$&temporary break; disable when reached\cr
  232. rbreak {\it regex}&break on all functions matching {\it regex}\cr
  233. watch {\it expr}&set a watchpoint for expression {\it expr}\cr
  234. catch {\it x}&break at C++ handler for exception {\it x}\cr
  235. \cr
  236. info break&show defined breakpoints\cr
  237. info watch&show defined watchpoints\cr
  238. \cr
  239. clear&delete breakpoints at next instruction\cr
  240. clear \opt{\it file\tt:}{\it fun}&delete breakpoints at entry to {\it fun}()\cr
  241. clear \opt{\it file\tt:}{\it line}&delete breakpoints on source line \cr
  242. delete \opt{{\it n}}&delete breakpoints
  243. \opt{or breakpoint {\it n}}\cr
  244. \cr
  245. disable \opt{{\it n}}&disable breakpoints
  246. \opt{or breakpoint {\it n}}
  247. \cr
  248. enable \opt{{\it n}}&enable breakpoints 
  249. \opt{or breakpoint {\it n}}
  250. \cr
  251. enable once \opt{{\it n}}&enable breakpoints \opt{or breakpoint {\it n}}; 
  252. disable again when reached
  253. \cr
  254. enable del \opt{{\it n}}&enable breakpoints \opt{or breakpoint {\it n}}; 
  255. delete when reached
  256. \cr
  257. \cr
  258. ignore {\it n} {\it count}&ignore breakpoint {\it n}, {\it count}
  259. times\cr
  260. \cr
  261. commands {\it n}\par
  262. \qquad \opt{\tt silent}\par
  263. \qquad {\it command-list}&execute GDB {\it command-list} every time breakpoint {\it n} is reached. \opt{{\tt silent} suppresses default
  264. display}\cr
  265. end&end of {\it command-list}\cr
  266. \endsec
  267.  
  268. \sec Program Stack;
  269. backtrace \opt{\it n}\par
  270. bt \opt{\it n}&print trace of all frames in stack; or of {\it n}
  271. frames---innermost if {\it n}{\tt >0}, outermost if {\it n}{\tt <0}\cr
  272. frame \opt{\it n}&select frame number {\it n} or frame at address {\it
  273. n}; if no {\it n}, display current frame\cr
  274. up {\it n}&select frame {\it n} frames up\cr
  275. down {\it n}&select frame {\it n} frames down\cr
  276. info frame \opt{\it addr}&describe selected frame, or frame at
  277. {\it addr}\cr
  278. info args&arguments of selected frame\cr
  279. info locals&local variables of selected frame\cr
  280. info reg \opt{\it rn}\par
  281. info all-reg \opt{\it rn}®ister values \opt{for reg {\it rn\/}} in
  282. selected frame; {\tt all-reg} includes floating point\cr
  283. info catch&exception handlers active in selected frame\cr
  284. \endsec
  285.  
  286. \vfill\eject
  287. \sec Execution Control;
  288. continue \opt{\it count}\par
  289. c \opt{\it count}&continue running; if {\it count} specified, ignore
  290. this breakpoint next {\it count} times\cr
  291. \cr
  292. step \opt{\it count}\par
  293. s \opt{\it count}&execute until another line reached; repeat {\it count} times if
  294. specified\cr
  295. stepi \opt{\it count}\par
  296. si \opt{\it count}&step by machine instructions rather than source
  297. lines\cr
  298. \cr
  299. next \opt{\it count}\par
  300. n \opt{\it count}&execute next line, including any function calls\cr
  301. nexti \opt{\it count}\par
  302. ni \opt{\it count}&next machine instruction rather than source
  303. line\cr
  304. \cr
  305. until \opt{\it location}&run until next instruction (or {\it
  306. location})\cr
  307. finish&run until selected stack frame returns\cr
  308. return \opt{\it expr}&pop selected stack frame without executing
  309. \opt{setting return value}\cr
  310. signal {\it num}&resume execution with signal {\it s} (none if {\tt 0})\cr
  311. jump {\it line}\par
  312. jump *{\it address}&resume execution at specified {\it line} number or
  313. {\it address}\cr
  314. set var={\it expr}&evaluate {\it expr} without displaying it; use for
  315. altering program variables\cr
  316. \endsec
  317.  
  318. \sec Display;
  319. print \opt{\tt/{\it f}\/} \opt{\it expr}\par
  320. p \opt{\tt/{\it f}\/} \opt{\it expr}&show value of {\it expr} \opt{or
  321. last value \tt \$} according to format {\it f}:\cr
  322. \qquad x&hexadecimal\cr
  323. \qquad d&signed decimal\cr
  324. \qquad u&unsigned decimal\cr
  325. \qquad o&octal\cr
  326. \qquad t&binary\cr
  327. \qquad a&address, absolute and relative\cr
  328. \qquad c&character\cr
  329. \qquad f&floating point\cr
  330. call \opt{\tt /{\it f}\/} {\it expr}&like {\tt print} but does not display
  331. {\tt void}\cr
  332. x \opt{\tt/{\it Nuf}\/} {\it expr}&examine memory at address {\it expr};
  333. optional format spec follows slash\cr
  334. \quad {\it N}&count of how many units to display\cr
  335. \quad {\it u}&unit size; one of\cr
  336. &{\tt\qquad b}\ individual bytes\cr
  337. &{\tt\qquad h}\ halfwords (two bytes)\cr
  338. &{\tt\qquad w}\ words (four bytes)\cr
  339. &{\tt\qquad g}\ giant words (eight bytes)\cr
  340. \quad {\it f}&printing format.  Any {\tt print} format, or\cr
  341. &{\tt\qquad s}\ null-terminated string\cr
  342. &{\tt\qquad i}\ machine instructions\cr
  343. disassem \opt{\it addr}&display memory as machine instructions\cr
  344. \endsec
  345.  
  346. \sec Automatic Display;
  347. display \opt{\tt/\it f\/} {\it expr}&show value of {\it expr} each time
  348. program stops \opt{according to format {\it f}\/}\cr
  349. display&display all enabled expressions on list\cr
  350. undisplay {\it n}&remove number(s) {\it n} from list of
  351. automatically displayed expressions\cr
  352. disable disp {\it n}&disable display for expression(s) number {\it
  353. n}\cr
  354. enable disp {\it n}&enable display for expression(s) number {\it
  355. n}\cr
  356. info display&numbered list of display expressions\cr
  357. \endsec
  358.  
  359. \vfill\eject
  360.  
  361. \sec Expressions;
  362. {\it expr}&an expression in C, C++, or Modula-2 (including function calls), or:\cr
  363. {\it addr\/}@{\it len}&an array of {\it len} elements beginning at {\it
  364. addr}\cr
  365. {\it file}::{\it nm}&a variable or function {\it nm} defined in {\it
  366. file}\cr
  367. $\tt\{${\it type}$\tt\}${\it addr}&read memory at {\it addr} as specified
  368. {\it type}\cr
  369. \$&most recent displayed value\cr
  370. \${\it n}&{\it n}th displayed value\cr
  371. \$\$&displayed value previous to \$\cr
  372. \$\${\it n}&{\it n}th displayed value back from \$\cr
  373. \$\_&last address examined with {\tt x}\cr
  374. \$\_\_&value at address \$\_\cr
  375. \${\it var}&convenience variable; assign any value\cr
  376. \cr
  377. show values \opt{{\it n}}&show last 10 values \opt{or surrounding
  378. \${\it n}}\cr
  379. show convenience&display all convenience variables\cr
  380. \endsec
  381.  
  382. \sec Symbol Table;
  383. info address {\it s}&show where symbol {\it s} is stored\cr
  384. info func \opt{\it regex}&show names, types of defined functions
  385. (all, or matching {\it regex})\cr
  386. info var \opt{\it regex}&show names, types of global variables (all,
  387. or matching {\it regex})\cr
  388. whatis \opt{\it expr}\par
  389. ptype \opt{\it expr}&show data type of {\it expr} \opt{or \tt \$}
  390. without evaluating; {\tt ptype} gives more detail\cr
  391. ptype {\it type}&describe type, struct, union, or enum\cr
  392. \endsec
  393.  
  394. \sec GDB Scripts;
  395. source {\it script}&read, execute GDB commands from file {\it
  396. script}\cr
  397. \cr
  398. define {\it cmd}\par
  399. \qquad {\it command-list}&create new GDB command {\it cmd}; 
  400. execute script defined by {\it command-list}\cr
  401. end&end of {\it command-list}\cr
  402. document {\it cmd}\par
  403. \qquad {\it help-text}&create online documentation 
  404. for new GDB command {\it cmd}\cr
  405. end&end of {\it help-text}\cr
  406. \endsec
  407.  
  408. \sec Signals;
  409. handle {\it signal} {\it act}&specify GDB actions for {\it signal}:\cr
  410. \quad print&announce signal\cr
  411. \quad noprint&be silent for signal\cr
  412. \quad stop&halt execution on signal\cr
  413. \quad nostop&do not halt execution\cr
  414. \quad pass&allow your program to handle signal\cr
  415. \quad nopass&do not allow your program to see signal\cr
  416. info signals&show table of signals, GDB action for each\cr
  417. \endsec
  418.  
  419. \sec Debugging Targets;
  420. target {\it type} {\it param}&connect to target machine, process, or file\cr
  421. help target&display available targets\cr
  422. attach {\it param}&connect to another process\cr
  423. detach&release target from GDB control\cr
  424. \endsec
  425.  
  426. \vfill\eject
  427. \sec Controlling GDB;
  428. set {\it param} {\it value}&set one of GDB's internal parameters\cr
  429. show {\it param}&display current setting of parameter\cr
  430. \xtra{\rm Parameters understood by {\tt set} and {\tt show}:}
  431. \quad complaints {\it limit}&number of messages on unusual symbols\cr
  432. \quad confirm {\it on/off}&enable or disable cautionary queries\cr
  433. \quad editing {\it on/off}&control {\tt readline} command-line editing\cr
  434. \quad height {\it lpp}&number of lines before pause in display\cr
  435. \quad language {\it lang}&Language for GDB expressions ({\tt auto}, {\tt c} or
  436. {\tt modula-2})\cr
  437. \quad listsize {\it n}&number of lines shown by {\tt list}\cr
  438. \quad prompt {\it str}&use {\it str} as GDB prompt\cr
  439. \quad radix {\it base}&octal, decimal, or hex number representation\cr
  440. \quad verbose {\it on/off}&control messages when loading
  441. symbols\cr
  442. \quad width {\it cpl}&number of characters before line folded\cr
  443. \quad write {\it on/off}&Allow or forbid patching binary, core files
  444. (when reopened with {\tt exec} or {\tt core})
  445. \cr
  446. \quad history $\ldots$\par
  447. \quad h $\ldots$&groups with the following options:\cr
  448. \quad h exp {\it off/on}&disable/enable {\tt readline} history expansion\cr
  449. \quad h file {\it filename}&file for recording GDB command history\cr
  450. \quad h size {\it size}&number of commands kept in history list\cr
  451. \quad h save {\it off/on}&control use of external file for
  452. command history\cr
  453. \cr
  454. \quad print $\ldots$\par
  455. \quad p $\ldots$&groups with the following options:\cr
  456. \quad p address {\it on/off}&print memory addresses in stacks,
  457. values\cr
  458. \quad p  array {\it off/on}&compact or attractive format for
  459. arrays\cr
  460. \quad p demangl {\it on/off}&source (demangled) or internal form for C++
  461. symbols\cr
  462. \quad p asm-dem {\it on/off}&demangle C++ symbols in
  463. machine-instruction output\cr
  464. \quad p elements {\it limit}&number of array elements to display\cr
  465. \quad p object {\it on/off}&print C++ derived types for objects\cr
  466. \quad p pretty {\it off/on}&struct display: compact or indented\cr
  467. \quad p union {\it on/off}&display of union members\cr
  468. \quad p vtbl {\it off/on}&display of C++ virtual function
  469. tables\cr
  470. \cr
  471. show commands&show last 10 commands\cr
  472. show commands {\it n}&show 10 commands around number {\it n}\cr
  473. show commands +&show next 10 commands\cr
  474. \endsec
  475.  
  476. \sec Working Files;
  477. file \opt{\it file}&use {\it file} for both symbols and executable;
  478. with no arg, discard both\cr
  479. core \opt{\it file}&read {\it file} as coredump; or discard\cr
  480. exec \opt{\it file}&use {\it file} as executable only; or discard\cr
  481. symbol \opt{\it file}&use symbol table from {\it file}; or discard\cr
  482. load {\it file}&dynamically link {\it file\/} and add its symbols\cr
  483. add-sym {\it file} {\it addr}&read additional symbols from {\it file},
  484. dynamically loaded at {\it addr}\cr
  485. info files&display working files and targets in use\cr
  486. path {\it dirs}&add {\it dirs} to front of path searched for
  487. executable and symbol files\cr
  488. show path&display executable and symbol file path\cr
  489. info share&list names of shared libraries currently loaded\cr
  490. \endsec
  491.  
  492. \vfill\eject
  493. \sec Source Files;
  494. dir {\it names}&add directory {\it names} to front of source path\cr
  495. dir&clear source path\cr
  496. show dir&show current source path\cr
  497. \cr
  498. list&show next ten lines of source\cr
  499. list -&show previous ten lines\cr
  500. list {\it lines}&display source centered around {\it lines}, 
  501. specified as one of:\cr
  502. \quad{\opt{\it file\tt:}\it num}&line number \opt{in named file}\cr
  503. \quad{\opt{\it file\tt:}\it function}&beginning of function \opt{in
  504. named file}\cr
  505. \quad{\tt +\it off}&{\it off} lines after last printed\cr
  506. \quad{\tt -\it off}&{\it off} lines previous to last printed\cr
  507. \quad{\tt*\it address}&line containing {\it address}\cr
  508. list {\it f},{\it l}&from line {\it f} to line {\it l}\cr
  509. info line {\it num}&show starting, ending addresses of compiled code for
  510. source line {\it num}\cr
  511. info source&show name of current source file\cr
  512. info sources&list all source files in use\cr
  513. forw {\it regex}&search following source lines for {\it regex}\cr
  514. rev {\it regex}&search preceding source lines for {\it regex}\cr
  515. \endsec
  516.  
  517. \sec GDB under GNU Emacs;
  518. M-x gdb&run GDB under Emacs\cr
  519. \ctl{h} m&describe GDB mode\cr
  520. M-s&step one line ({\tt step})\cr
  521. M-n&next line ({\tt next})\cr
  522. M-i&step one instruction ({\tt stepi})\cr
  523. \ctl{c} \ctl{f}&finish current stack frame ({\tt finish})\cr
  524. M-c&continue ({\tt cont})\cr
  525. M-u&up {\it arg} frames ({\tt up})\cr
  526. M-d&down {\it arg} frames ({\tt down})\cr
  527. \ctl{x} \&© number from point, insert at end\cr
  528. \ctl{x} SPC&(in source file) set break at point\cr
  529. \endsec
  530.  
  531. \sec GDB License;
  532. show copying&Display GNU General Public License\cr
  533. show warranty&There is NO WARRANTY for GDB.  Display full no-warranty
  534. statement.\cr 
  535. \endsec
  536.  
  537.  
  538. \vfill
  539. {\smrm\parskip=6pt
  540. \centerline{Copyright \copyright 1991, 1992 Free Software Foundation, Inc.}
  541. \centerline{Roland Pesch (pesch@cygnus.com), January 1992---\manvers}
  542. \centerline{The author assumes no responsibility for any errors on this card.}
  543.  
  544. This card may be freely distributed under the terms of the GNU
  545. General Public License.
  546.  
  547. \centerline{Please contribute to development of this card by
  548. annotating it.}
  549.  
  550. GDB itself is free software; you are welcome to distribute copies of
  551. it under the terms of the GNU General Public License.  There is
  552. absolutely no warranty for GDB.
  553. }
  554. \end
  555.